##
## Makefile for  in /home/jousse_f//workspace/piscine_c++/d01
## 
## Made by florian jousseau
## Login   <jousse_f@epitech.net>
## 
## Started on  Wed Jan  4 10:46:56 2012 florian jousseau
## Last update Wed Apr  4 12:32:08 2012 florian jousseau
##

CC = gcc -Wall -Wextra

NAME1 = srv

SRC1 = 	server.c	\
	exec_cmd.c	\
	xfct_s.c	\
	file.c

OBJ1 = $(SRC1:.c=.o)

NAME2 = client

SRC2 = 	client.c

OBJ2 = $(SRC2:.c=.o)

all:	$(NAME1) $(NAME2)

$(NAME1):	$(OBJ1)
	$(CC) $(OBJ1) -o $(NAME1)

$(NAME2):	$(OBJ2)
	$(CC) $(OBJ2) -o $(NAME2)

clean:
	rm -f $(OBJ1) $(OBJ2)
	clean

fclean: clean
	$(RM) $(NAME1) $(NAME2)

re:	fclean all


